package com.youlai.boot.modules.content.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import jakarta.validation.constraints.*;

/**
 * 友链表单对象
 *
 * @author lz006891
 * @since 2025-02-25 10:49
 */
@Getter
@Setter
@Schema(description = "友链表单对象")
public class LzLinkForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    @Size(max=256, message="长度不能超过256个字符")
    private String name;

    @Size(max=256, message="长度不能超过256个字符")
    private String logo;

    @Size(max=512, message="长度不能超过512个字符")
    private String description;

    @Schema(description = "网站地址")
    @Size(max=128, message="网站地址长度不能超过128个字符")
    private String address;

    @Schema(description = "审核状态 (0代表审核通过，1代表审核未通过，2代表未审核)")
    @Size(max=1, message="审核状态 (0代表审核通过，1代表审核未通过，2代表未审核)长度不能超过1个字符")
    private String status;

    private Long createBy;

    private LocalDateTime createTime;

    private Long updateBy;

    private LocalDateTime updateTime;

    @Schema(description = "删除标志（0代表未删除，1代表已删除）")
    private Integer isDeleted;


}
